﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using VisionRoc.Tool;

namespace VisionRoc_Measure
{
    public partial class FormPingIP : Form
    {
        public FormPingIP()
        {
            InitializeComponent();
        }

        private void btn_PingIP_Click(object sender, EventArgs e)
        {
            if (Tool.PingIP(txt_IP.Text.Trim()))
            {
                MessageBox.Show($"Ping IP:{txt_IP.Text} 结果：TRUE");
            }
            else
            {
                MessageBox.Show($"Ping IP:{txt_IP.Text} 结果：FALSE");
            }
        }
    }
}
